﻿# -*- coding:UTF-8 -*-
#!/usr/bin/env python

from google.appengine.ext import db

class ShortUrl(db.Model):
    clicks = db.IntegerProperty(default = 0)
    shortUrl = db.StringProperty(required = True)
    originalUrl = db.StringProperty(required = True)
    lastClick = db.DateTimeProperty(auto_now = True)
    created = db.DateTimeProperty(auto_now_add =True)
    addBy = db.UserProperty(auto_current_user_add = True)